package com.keba.lamp.ai.vo.update;

import com.keba.basic.base.entity.SuperEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 表单修改方法VO
 * 应用表
 * </p>
 *
 * @author twg
 * @date 2025-03-02 19:36:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode
@Builder
@Schema(description = "应用表")
public class AiApplicationUpdateVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 乐观锁
     */
    @Schema(description = "乐观锁")
    private Integer revision;
    /**
     * 是否删除，0-未删除，1-删除
     */
    @Schema(description = "是否删除，0-未删除，1-删除")
    private Integer isDel;
    /**
     * 客户id
     */
    @Schema(description = "客户id")
    @NotNull(message = "请填写客户id")
    private Long customerId;
    /**
     * 应用名称
     */
    @Schema(description = "应用名称")
    @NotBlank(message = "请填写应用名称")
    @Size(max = 100, message = "应用名称长度不能超过{max}")
    private String name;
    /**
     * 描述
     */
    @Schema(description = "描述")
    @Size(max = 500, message = "描述长度不能超过{max}")
    private String description;
    /**
     * 接入点ID
     */
    @Schema(description = "接入点ID")
    @NotNull(message = "请填写接入点ID")
    private Long endPointId;
    /**
     * 提示词
     */
    @Schema(description = "提示词")
    @Size(max = 5000, message = "提示词长度不能超过{max}")
    private String prompt;
    /**
     * 开场白
     */
    @Schema(description = "开场白")
    @Size(max = 500, message = "开场白长度不能超过{max}")
    private String prologue;
    /**
     * 预留问题/开场问题（json存储）
     */
    @Schema(description = "预留问题/开场问题（json存储）")
    @Size(max = 65535, message = "预留问题/开场问题（json存储）长度不能超过{max}")
    private String preProblem;


}
